window = global;
window.navigator = {
    appCodeName: "Mozilla",
    appName: "Netscape",
    appVersion: "5.0(windows NT 6.1;wow64)Applewebkit/537.36(KHML, like Gecko)Chrome/74.0.3729.169 safari/537.36",
    cookieEnabled: true,
    doNotTrack: null,
    hardwareConcurrency: 4,
    language: "zh-CN",
    languages: ["zh-CN", "zh"],
    maxTouchPoints: 0,
    onLine: true,
    platform: "Win32",
    product: "Gecko",
    productSub: "20030107",
    userAgent: "Mozilla/5.0 (windows NT 6.1;WOW64)Applewebkit/537.36(KHTML, likeGecko)chrome/74.0.3729.169 safari/537.36",
    vendor: "Google Inc",
    vendorSub: ""
};

!function (t, i, o) {
    "use strict";
    var r;

    function s(t, i, o) {
        null != t && ("number" == typeof t ? this.fromNumber(t, i, o) : null == i && "string" != typeof t ? this.fromString(t, 256) : this.fromString(t, i))
    }

    function n() {
        return new s(null)
    }

    "Microsoft Internet Explorer" == navigator.appName ? (s.prototype.am = function (t, i, o, r, s, n) {
        for (var h = 32767 & i, e = i >> 15; --n >= 0;) {
            var u = 32767 & this[t], f = this[t++] >> 15, a = e * u + f * h;
            s = ((u = h * u + ((32767 & a) << 15) + o[r] + (1073741823 & s)) >>> 30) + (a >>> 15) + e * f + (s >>> 30), o[r++] = 1073741823 & u
        }
        return s
    }
        , r = 30) : "Netscape" != navigator.appName ? (s.prototype.am = function (t, i, o, r, s, n) {
        for (; --n >= 0;) {
            var h = i * this[t++] + o[r] + s;
            s = Math.floor(h / 67108864), o[r++] = 67108863 & h
        }
        return s
    }
        , r = 26) : (s.prototype.am = function (t, i, o, r, s, n) {
        for (var h = 16383 & i, e = i >> 14; --n >= 0;) {
            var u = 16383 & this[t], f = this[t++] >> 14, a = e * u + f * h;
            s = ((u = h * u + ((16383 & a) << 14) + o[r] + s) >> 28) + (a >> 14) + e * f, o[r++] = 268435455 & u
        }
        return s
    }
        , r = 28), s.prototype.DB = r, s.prototype.DM = (1 << r) - 1, s.prototype.DV = 1 << r;
    s.prototype.FV = Math.pow(2, 52), s.prototype.F1 = 52 - r, s.prototype.F2 = 2 * r - 52;
    var h, e, u = new Array;
    for (h = "0".charCodeAt(0), e = 0; e <= 9; ++e) u[h++] = e;
    for (h = "a".charCodeAt(0), e = 10; e < 36; ++e) u[h++] = e;
    for (h = "A".charCodeAt(0), e = 10; e < 36; ++e) u[h++] = e;

    function f(t) {
        return "0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)
    }

    function a(t, i) {
        var o = u[t.charCodeAt(i)];
        return null == o ? -1 : o
    }

    function p(t) {
        var i = n();
        return i.fromInt(t), i
    }

    function l(t) {
        var i, o = 1;
        return 0 != (i = t >>> 16) && (t = i, o += 16), 0 != (i = t >> 8) && (t = i, o += 8), 0 != (i = t >> 4) && (t = i, o += 4), 0 != (i = t >> 2) && (t = i, o += 2), 0 != (i = t >> 1) && (t = i, o += 1), o
    }

    function c(t) {
        this.m = t
    }

    function m(t) {
        this.m = t, this.mp = t.invDigit(), this.mpl = 32767 & this.mp, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t
    }

    function v() {
        this.i = 0, this.j = 0, this.S = new Array
    }

    c.prototype.convert = function (t) {
        return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t
    }
        , c.prototype.revert = function (t) {
        return t
    }
        , c.prototype.reduce = function (t) {
        t.divRemTo(this.m, null, t)
    }
        , c.prototype.mulTo = function (t, i, o) {
        t.multiplyTo(i, o), this.reduce(o)
    }
        , c.prototype.sqrTo = function (t, i) {
        t.squareTo(i), this.reduce(i)
    }
        , m.prototype.convert = function (t) {
        var i = n();
        return t.abs().dlShiftTo(this.m.t, i), i.divRemTo(this.m, null, i), t.s < 0 && i.compareTo(s.ZERO) > 0 && this.m.subTo(i, i), i
    }
        , m.prototype.revert = function (t) {
        var i = n();
        return t.copyTo(i), this.reduce(i), i
    }
        , m.prototype.reduce = function (t) {
        for (; t.t <= this.mt2;) t[t.t++] = 0;
        for (var i = 0; i < this.m.t; ++i) {
            var o = 32767 & t[i], r = o * this.mpl + ((o * this.mph + (t[i] >> 15) * this.mpl & this.um) << 15) & t.DM;
            for (t[o = i + this.m.t] += this.m.am(0, r, t, i, 0, this.m.t); t[o] >= t.DV;) t[o] -= t.DV, t[++o]++
        }
        t.clamp(), t.drShiftTo(this.m.t, t), t.compareTo(this.m) >= 0 && t.subTo(this.m, t)
    }
        , m.prototype.mulTo = function (t, i, o) {
        t.multiplyTo(i, o), this.reduce(o)
    }
        , m.prototype.sqrTo = function (t, i) {
        t.squareTo(i), this.reduce(i)
    }
        , s.prototype.copyTo = function (t) {
        for (var i = this.t - 1; i >= 0; --i) t[i] = this[i];
        t.t = this.t, t.s = this.s
    }
        , s.prototype.fromInt = function (t) {
        this.t = 1, this.s = t < 0 ? -1 : 0, t > 0 ? this[0] = t : t < -1 ? this[0] = t + this.DV : this.t = 0
    }
        , s.prototype.fromString = function (t, i) {
        var o;
        if (16 == i) o = 4; else if (8 == i) o = 3; else if (256 == i) o = 8; else if (2 == i) o = 1; else if (32 == i) o = 5; else {
            if (4 != i) return void this.fromRadix(t, i);
            o = 2
        }
        this.t = 0, this.s = 0;
        for (var r = t.length, n = !1, h = 0; --r >= 0;) {
            var e = 8 == o ? 255 & t[r] : a(t, r);
            e < 0 ? "-" == t.charAt(r) && (n = !0) : (n = !1, 0 == h ? this[this.t++] = e : h + o > this.DB ? (this[this.t - 1] |= (e & (1 << this.DB - h) - 1) << h, this[this.t++] = e >> this.DB - h) : this[this.t - 1] |= e << h, (h += o) >= this.DB && (h -= this.DB))
        }
        8 == o && 0 != (128 & t[0]) && (this.s = -1, h > 0 && (this[this.t - 1] |= (1 << this.DB - h) - 1 << h)), this.clamp(), n && s.ZERO.subTo(this, this)
    }
        , s.prototype.clamp = function () {
        for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t;) --this.t
    }
        , s.prototype.dlShiftTo = function (t, i) {
        var o;
        for (o = this.t - 1; o >= 0; --o) i[o + t] = this[o];
        for (o = t - 1; o >= 0; --o) i[o] = 0;
        i.t = this.t + t, i.s = this.s
    }
        , s.prototype.drShiftTo = function (t, i) {
        for (var o = t; o < this.t; ++o) i[o - t] = this[o];
        i.t = Math.max(this.t - t, 0), i.s = this.s
    }
        , s.prototype.lShiftTo = function (t, i) {
        var o, r = t % this.DB, s = this.DB - r, n = (1 << s) - 1, h = Math.floor(t / this.DB),
            e = this.s << r & this.DM;
        for (o = this.t - 1; o >= 0; --o) i[o + h + 1] = this[o] >> s | e, e = (this[o] & n) << r;
        for (o = h - 1; o >= 0; --o) i[o] = 0;
        i[h] = e, i.t = this.t + h + 1, i.s = this.s, i.clamp()
    }
        , s.prototype.rShiftTo = function (t, i) {
        i.s = this.s;
        var o = Math.floor(t / this.DB);
        if (o >= this.t) i.t = 0; else {
            var r = t % this.DB, s = this.DB - r, n = (1 << r) - 1;
            i[0] = this[o] >> r;
            for (var h = o + 1; h < this.t; ++h) i[h - o - 1] |= (this[h] & n) << s, i[h - o] = this[h] >> r;
            r > 0 && (i[this.t - o - 1] |= (this.s & n) << s), i.t = this.t - o, i.clamp()
        }
    }
        , s.prototype.subTo = function (t, i) {
        for (var o = 0, r = 0, s = Math.min(t.t, this.t); o < s;) r += this[o] - t[o], i[o++] = r & this.DM, r >>= this.DB;
        if (t.t < this.t) {
            for (r -= t.s; o < this.t;) r += this[o], i[o++] = r & this.DM, r >>= this.DB;
            r += this.s
        } else {
            for (r += this.s; o < t.t;) r -= t[o], i[o++] = r & this.DM, r >>= this.DB;
            r -= t.s
        }
        i.s = r < 0 ? -1 : 0, r < -1 ? i[o++] = this.DV + r : r > 0 && (i[o++] = r), i.t = o, i.clamp()
    }
        , s.prototype.multiplyTo = function (t, i) {
        var o = this.abs(), r = t.abs(), n = o.t;
        for (i.t = n + r.t; --n >= 0;) i[n] = 0;
        for (n = 0; n < r.t; ++n) i[n + o.t] = o.am(0, r[n], i, n, 0, o.t);
        i.s = 0, i.clamp(), this.s != t.s && s.ZERO.subTo(i, i)
    }
        , s.prototype.squareTo = function (t) {
        for (var i = this.abs(), o = t.t = 2 * i.t; --o >= 0;) t[o] = 0;
        for (o = 0; o < i.t - 1; ++o) {
            var r = i.am(o, i[o], t, 2 * o, 0, 1);
            (t[o + i.t] += i.am(o + 1, 2 * i[o], t, 2 * o + 1, r, i.t - o - 1)) >= i.DV && (t[o + i.t] -= i.DV, t[o + i.t + 1] = 1)
        }
        t.t > 0 && (t[t.t - 1] += i.am(o, i[o], t, 2 * o, 0, 1)), t.s = 0, t.clamp()
    }
        , s.prototype.divRemTo = function (t, i, o) {
        var r = t.abs();
        if (!(r.t <= 0)) {
            var h = this.abs();
            if (h.t < r.t) return null != i && i.fromInt(0), void (null != o && this.copyTo(o));
            null == o && (o = n());
            var e = n(), u = this.s, f = t.s, a = this.DB - l(r[r.t - 1]);
            a > 0 ? (r.lShiftTo(a, e), h.lShiftTo(a, o)) : (r.copyTo(e), h.copyTo(o));
            var p = e.t, c = e[p - 1];
            if (0 != c) {
                var m = c * (1 << this.F1) + (p > 1 ? e[p - 2] >> this.F2 : 0), v = this.FV / m, y = (1 << this.F1) / m,
                    d = 1 << this.F2, T = o.t, D = T - p, g = null == i ? n() : i;
                for (e.dlShiftTo(D, g), o.compareTo(g) >= 0 && (o[o.t++] = 1, o.subTo(g, o)), s.ONE.dlShiftTo(p, g), g.subTo(e, e); e.t < p;) e[e.t++] = 0;
                for (; --D >= 0;) {
                    var w = o[--T] == c ? this.DM : Math.floor(o[T] * v + (o[T - 1] + d) * y);
                    if ((o[T] += e.am(0, w, o, D, 0, p)) < w) for (e.dlShiftTo(D, g), o.subTo(g, o); o[T] < --w;) o.subTo(g, o)
                }
                null != i && (o.drShiftTo(p, i), u != f && s.ZERO.subTo(i, i)), o.t = p, o.clamp(), a > 0 && o.rShiftTo(a, o), u < 0 && s.ZERO.subTo(o, o)
            }
        }
    }
        , s.prototype.invDigit = function () {
        if (this.t < 1) return 0;
        var t = this[0];
        if (0 == (1 & t)) return 0;
        var i = 3 & t;
        return (i = (i = (i = (i = i * (2 - (15 & t) * i) & 15) * (2 - (255 & t) * i) & 255) * (2 - ((65535 & t) * i & 65535)) & 65535) * (2 - t * i % this.DV) % this.DV) > 0 ? this.DV - i : -i
    }
        , s.prototype.isEven = function () {
        return 0 == (this.t > 0 ? 1 & this[0] : this.s)
    }
        , s.prototype.exp = function (t, i) {
        if (t > 4294967295 || t < 1) return s.ONE;
        var o = n(), r = n(), h = i.convert(this), e = l(t) - 1;
        for (h.copyTo(o); --e >= 0;) if (i.sqrTo(o, r), (t & 1 << e) > 0) i.mulTo(r, h, o); else {
            var u = o;
            o = r, r = u
        }
        return i.revert(o)
    }
        , s.prototype.toString = function (t) {
        if (this.s < 0) return "-" + this.negate().toString(t);
        var i;
        if (16 == t) i = 4; else if (8 == t) i = 3; else if (2 == t) i = 1; else if (32 == t) i = 5; else {
            if (4 != t) return this.toRadix(t);
            i = 2
        }
        var o, r = (1 << i) - 1, s = !1, n = "", h = this.t, e = this.DB - h * this.DB % i;
        if (h-- > 0) for (e < this.DB && (o = this[h] >> e) > 0 && (s = !0, n = f(o)); h >= 0;) e < i ? (o = (this[h] & (1 << e) - 1) << i - e, o |= this[--h] >> (e += this.DB - i)) : (o = this[h] >> (e -= i) & r, e <= 0 && (e += this.DB, --h)), o > 0 && (s = !0), s && (n += f(o));
        return s ? n : "0"
    }
        , s.prototype.negate = function () {
        var t = n();
        return s.ZERO.subTo(this, t), t
    }
        , s.prototype.abs = function () {
        return this.s < 0 ? this.negate() : this
    }
        , s.prototype.compareTo = function (t) {
        var i = this.s - t.s;
        if (0 != i) return i;
        var o = this.t;
        if (0 != (i = o - t.t)) return this.s < 0 ? -i : i;
        for (; --o >= 0;) if (0 != (i = this[o] - t[o])) return i;
        return 0
    }
        , s.prototype.bitLength = function () {
        return this.t <= 0 ? 0 : this.DB * (this.t - 1) + l(this[this.t - 1] ^ this.s & this.DM)
    }
        , s.prototype.mod = function (t) {
        var i = n();
        return this.abs().divRemTo(t, null, i), this.s < 0 && i.compareTo(s.ZERO) > 0 && t.subTo(i, i), i
    }
        , s.prototype.modPowInt = function (t, i) {
        var o;
        return o = t < 256 || i.isEven() ? new c(i) : new m(i), this.exp(t, o)
    }
        , s.ZERO = p(0), s.ONE = p(1), v.prototype.init = function (t) {
        var i, o, r;
        for (i = 0; i < 256; ++i) this.S[i] = i;
        for (o = 0, i = 0; i < 256; ++i) o = o + this.S[i] + t[i % t.length] & 255, r = this.S[i], this.S[i] = this.S[o], this.S[o] = r;
        this.i = 0, this.j = 0
    }
        , v.prototype.next = function () {
        var t;
        return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, t = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = t, this.S[t + this.S[this.i] & 255]
    };
    var y, d, T;

    function D() {
        var t;
        t = (new Date).getTime(), d[T++] ^= 255 & t, d[T++] ^= t >> 8 & 255, d[T++] ^= t >> 16 & 255, d[T++] ^= t >> 24 & 255, T >= 256 && (T -= 256)
    }

    if (null == d) {
        var g;
        if (d = new Array, T = 0, window.crypto && window.crypto.getRandomValues) {
            var w = new Uint8Array(32);
            for (window.crypto.getRandomValues(w), g = 0; g < 32; ++g) d[T++] = w[g]
        }
        if ("Netscape" == navigator.appName && navigator.appVersion < "5" && window.crypto && window.crypto.random) {
            var S = window.crypto.random(32);
            for (g = 0; g < S.length; ++g) d[T++] = 255 & S.charCodeAt(g)
        }
        for (; T < 256;) g = Math.floor(65536 * Math.random()), d[T++] = g >>> 8, d[T++] = 255 & g;
        T = 0, D()
    }

    function b() {
        if (null == y) {
            for (D(), (y = new v).init(d), T = 0; T < d.length; ++T) d[T] = 0;
            T = 0
        }
        return y.next()
    }

    function B() {
    }

    function M() {
        this.n = null, this.e = 0, this.d = null, this.p = null, this.q = null, this.dmp1 = null, this.dmq1 = null, this.coeff = null
    }

    B.prototype.nextBytes = function (t) {
        var i;
        for (i = 0; i < t.length; ++i) t[i] = b()
    }
        , M.prototype.doPublic = function (t) {
        return t.modPowInt(this.e, this.n)
    }
        , M.prototype.setPublic = function (t, i) {
        null != t && null != i && t.length > 0 && i.length > 0 ? (this.n = new s(t, 16), this.e = parseInt(i, 16)) : alert("Invalid RSA public key")
    }
        , M.prototype.encrypt = function (t) {
        var i = function (t, i) {
            if (i < t.length + 11) return alert("Message too long for RSA"), null;
            for (var o = new Array, r = t.length - 1; r >= 0 && i > 0;) {
                var n = t.charCodeAt(r--);
                n < 128 ? o[--i] = n : n > 127 && n < 2048 ? (o[--i] = 63 & n | 128, o[--i] = n >> 6 | 192) : (o[--i] = 63 & n | 128, o[--i] = n >> 6 & 63 | 128, o[--i] = n >> 12 | 224)
            }
            o[--i] = 0;
            for (var h = new B, e = new Array; i > 2;) {
                for (e[0] = 0; 0 == e[0];) h.nextBytes(e);
                o[--i] = e[0]
            }
            return o[--i] = 2, o[--i] = 0, new s(o)
        }(t, this.n.bitLength() + 7 >> 3);
        if (null == i) return null;
        var o = this.doPublic(i);
        if (null == o) return null;
        var r = o.toString(16);
        return 0 == (1 & r.length) ? r : "0" + r
    };
    window.default = M
}()

var u = new window.default

var generatePassword = function (password) {
    u.setPublic("d3bcef1f00424f3261c89323fa8cdfa12bbac400d9fe8bb627e8d27a44bd5d59dce559135d678a8143beb5b8d7056c4e1f89c4e1f152470625b7b41944a97f02da6f605a49a93ec6eb9cbaf2e7ac2b26a354ce69eb265953d2c29e395d6d8c1cdb688978551aa0f7521f290035fad381178da0bea8f9e6adce39020f513133fb", "10001")
    return u.encrypt(password)
}

console.log(generatePassword("123123"))
